package com.gtja.beoms.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 聊天关系映射对象
 *
 * @author LI
 * @date 2021-07-06
 */
public class QwContactMapping {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 企业表ID （mc_corp.id）
     */
    private String corpId;

    /**
     * 发送人id
     */
    private String fromId;

    /**
     * 接收人id
     */
    private String receiveId;

    /**
     * 群聊id
     */
    private String roomId;

    /**
     * 发送人是否为客户 0-成员 1-客户 2-机器人
     */
    private String fromType;

    /**
     * 接收人是否为客户 0-成员 1-客户 2-群聊
     */
    private String receiveType;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastUpdateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public String getFromId() {
        return fromId;
    }

    public void setReceiveId(String receiveId) {
        this.receiveId = receiveId;
    }

    public String getReceiveId() {
        return receiveId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getRoomId() {
        return roomId;
    }


    public String getFromType() {
        return fromType;
    }

    public void setFromType(String fromType) {
        this.fromType = fromType;
    }

    public String getReceiveType() {
        return receiveType;
    }

    public void setReceiveType(String receiveType) {
        this.receiveType = receiveType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    @Override
    public String toString() {
        return "QwContactMapping{" +
                "id=" + id +
                ", fromId='" + fromId + '\'' +
                ", receiveId='" + receiveId + '\'' +
                ", roomId='" + roomId + '\'' +
                ", fromType='" + fromType + '\'' +
                ", receiveType='" + receiveType + '\'' +
                ", createTime=" + createTime +
                ", lastUpdateTime=" + lastUpdateTime +
                '}';
    }
}
